doc: Clarify fs.access works on directories too.#7113
doc: Clarify fs.access works on directories too.#7113lance wants to merge 4 commits intonodejs:masterfrom lance:fs-access-doc-clarity
Conversation
Fixes: #7110 This is maybe more verbose than needed, since the same information is repeated several times. An alternative, maybe a single short sentence at the beginning is better. E.g. > Tests a user's permissions for the file or directory specified by > path. All modes work for either files or directories. `mode` is...
|
Could you just change the first sentence to:
As you already did. Then, for |
No need to be so verbose about file vs. directory. They are all just paths.
|
@cjihrig simplified... Just noticed that my editor trimmed some trailing whitespace. I assume this is not a problem. |
doc/api/fs.md
Outdated
There was a problem hiding this comment.
Sorry, I meant use path, formatted as code to reference the argument.
There was a problem hiding this comment.
I should have realized... Fixed
|
LGTM |
doc/api/fs.md
Outdated
There was a problem hiding this comment.
s/mode is/The mode argument is
|
Small nit, otherwise LGTM |
|
Still LGTM |
|
Landed in d976d66 |
|
This is not landing cleanly on the v6.x branch. @lance would you be interested in opening an additional PR targeting the v6.x branch? |
|
@evanlucas will do. A question. It's not clear to me if @jasnell's dcccbfd#diff-acabf706a8aa070a8796e3573f7e4678 is intended to land in v6.x. If so, the docs should refer to |
|
@lance yea, the linked pr is semver-minor so won't be landing until the next semver-minor bump |
Checklist
Affected core subsystem(s)
doc, fs
Description of change
Fixes: #7110
This is maybe more verbose than needed, since the same information is
repeated several times. An alternative, maybe a single short sentence at
the beginning is better. E.g.